<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<style>
body {
  margin: 0;
  padding: 0;
}
/* ElementUI 输入框特定样式 */
.el-input__inner {
  font-size: 16px !important;
}

</style>
<script>
  // 在 App.vue 或主组件中添加
export default {
  mounted() {
    this.disableZoom();
  },
  methods: {
    disableZoom() {
      document.addEventListener('gesturestart', function(e) {
        e.preventDefault();
      });
      let lastTouchEnd = 0;
      document.addEventListener('touchend', function(event) {
        const now = (new Date()).getTime();
        if (now - lastTouchEnd <= 300) {
          event.preventDefault();
        }
        lastTouchEnd = now;
      }, false);
    }
  }
}
</script>
